import type {ResMenuList} from '@/api/interface'

export interface ThemeState {
	layout: string // 布局切换
	isDark: boolean // 深色模式
	isGrey: boolean // 灰色模式
	isWeak: boolean // 色弱模式
	isCollapse: boolean // 折叠菜单
	breadcrumb: boolean // 面包屑
	breadcrumbIcon: boolean // 面包屑导航图标
	tabs: boolean // 标签页
	tabsIcon: boolean // 标签页图标
	fullScreen: boolean // 当前页是否全屏
	assemblySize: string // element组件大小
	assemblySizeShow: boolean // element组件大小是否显示
	primary: string // 主题颜色
}

export interface Roles {
	roleId: string | number
	roleKey: string
	roleName: string
}

export interface UserState {
	token: string
	userId: string | number
	userName: string
	avatar: string
	//roles: Roles[]
	roles: string[]
	refreshToken: string
	permissions: string[]
}

export interface TabsMenuProps {
	icon: string
	title: string
	path: string
	name: string
	close: boolean
}

export interface RouteState {
	menuList: ResMenuList[]
	keepAliveName: string[]
	tabsMenuList: TabsMenuProps[]
}
